<?php

class LenghtRule extends Rule {

    public function validate($ValueToValidate) {
        return strlen($ValueToValidate) > $this->Value;
    }

    public function getMessage() {
        return 'O Campo "' . $this->FieldName . '" deve conter mais que ' . $this->Value . ' caracteres!';
    }

}

?>
